package com.wsdcd.zlg.mapper.impl;

import com.wsdcd.zlg.mapper.UserMapper;
import com.wsdcd.zlg.model.entity.User;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;

@Repository
public class UserMapperImpl implements UserMapper {
//    private List<String> lists;
//    private Set<String> sets;
//    private Map<String, String> maps;
//    public List<String> getLists() {
//        return lists;
//    }
//    public void setLists(List<String> lists) {
//        this.lists = lists;
//    }
//    public Set<String> getSets() {
//        return sets;
//    }
//    public void setSets(Set<String> sets) {
//        this.sets = sets;
//    }
//    public Map<String, String> getMaps() {
//        return maps;
//    }
//    public void setMaps(Map<String, String> maps) {
//        this.maps = maps;
//    }

    public UserMapperImpl(){
        System.err.println("UserMapperImpl构造方法");
    }

    @Override
    public void insert(User user) {

    }

    @Override
    public void delete(int id) {

    }

    @Override
    public void update(User user) {

    }

    @Override
    public List<User> select() {
        List<User> list = new ArrayList<User>();

        for (int i=0;i<10;i++){
            User user = new User(i,"张三"+i,"123456","用户"+i);
            list.add(user);
        }
        return list;
    }

    @Override
    public int insertBatch(List<User> list) {
        return 0;
    }

    @Override
    public int deleteBatch(List<Integer> list) {
        return 0;
    }

    @Override
    public List<User> selectByUsername(String username) {
        return null;
    }
}
